package com.gstdev.liner.main;

import androidx.lifecycle.ViewModelProviders;
import android.os.Bundle;

import com.api.network.BeanImpl;
import com.api.utils.PermissionUtils;
import com.gstdev.liner.BR;
import com.gstdev.liner.R;
import com.gstdev.liner.databinding.MainActivityBinding;
import me.goldze.mvvmhabit.base.BaseActivity;

public class MainActivity extends BaseActivity<MainActivityBinding,MainViewModel> {


    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.main_activity;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public MainViewModel initViewModel() {
        return ViewModelProviders.of(this).get(MainViewModel.class);
    }

    @Override
    public void initData() {
        super.initData();
        PermissionUtils.permission(this, new PermissionUtils.PermissionFinish() {
            @Override
            public void success() {

            }
        });
    }

}
